package com.tools.cleanmaster.ui.adapter;

import android.content.Context;
import android.widget.BaseAdapter;

import com.tools.cleanmaster.model.item.TrashItem;

/**
 * Created by lianzhan on 15/12/25.
 */
public abstract class DeepAdapter extends BaseAdapter {
    protected Context mContext;
    protected OnDeleteCallback mDeleteOnclickCallback;

    public DeepAdapter(Context context) {
        this.mContext = context;
        initImageLoader();
    }

    private void initImageLoader() {
        int resId = getDefaultImageId();
    }

    public void setDeleteCallback(OnDeleteCallback deleteOnclickCallback) {
        mDeleteOnclickCallback = deleteOnclickCallback;
    }

    public interface OnDeleteCallback {
        void onClick(int position, TrashItem item);
    }

    protected abstract int getDefaultImageId();
}
